<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@	page import="java.util.ArrayList"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NFC EDUCATION MANAGEMENT SYSTEM</title>
<script src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript">
	function checkMenu(href) {
		var id = "${sessionScope.custId}";
		var level = "${sessionScope.level}";

		if (id == null || id == "") {
			alert("로그인 해주세요");
		} else if (href == 'index.jsp?contentMenu=admin/menuPage.jsp&content=admin/mainPage.jsp'
				&& level != '1') {
			alert("관리자만 사용 가능합니다.");
		} else {

			location.replace(href);

		}
	}
	function MM_swapImgRestore() { //v3.0
		var i, x, a = document.MM_sr;
		for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
			x.src = x.oSrc;
	}
	function MM_preloadImages() { //v3.0
		var d = document;
		if (d.images) {
			if (!d.MM_p)
				d.MM_p = new Array();
			var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
			for (i = 0; i < a.length; i++)
				if (a[i].indexOf("#") != 0) {
					d.MM_p[j] = new Image;
					d.MM_p[j++].src = a[i];
				}
		}
	}

	function MM_findObj(n, d) { //v4.01
		var p, i, x;
		if (!d)
			d = document;
		if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
			d = parent.frames[n.substring(p + 1)].document;
			n = n.substring(0, p);
		}
		if (!(x = d[n]) && d.all)
			x = d.all[n];
		for (i = 0; !x && i < d.forms.length; i++)
			x = d.forms[i][n];
		for (i = 0; !x && d.layers && i < d.layers.length; i++)
			x = MM_findObj(n, d.layers[i].document);
		if (!x && d.getElementById)
			x = d.getElementById(n);
		return x;
	}

	function MM_swapImage() { //v3.0
		var i, j = 0, x, a = MM_swapImage.arguments;
		document.MM_sr = new Array;
		for (i = 0; i < (a.length - 2); i += 3)
			if ((x = MM_findObj(a[i])) != null) {
				document.MM_sr[j++] = x;
				if (!x.oSrc)
					x.oSrc = x.src;
				x.src = a[i + 2];
			}
	}
</script>
<style type="text/css">
body {
	
	padding: 0;
}

#warp {
	width: 1010px;
	height: auto;
}

#top {
	height: auto;
	width: 1030px;
}

#left {
	float: left;
	width: 250px;
	height: 100%;
}

#default {
	float: right;
	width: 780px;
	height: 100%;
}

#bottom {
	clear: both;
	width: 1010px;
}
</style>
</head>
<body
	onLoad="MM_preloadImages('/nems/img/image3_07_roll.png','/nems/img/image3_09_roll.png', '/nems/img/image3_11_roll.png','/nems/img/image3_13_roll.png','/nems/img/image3_15_roll.png')"
	bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0">
	<center>
	<div id="warp" style=" 1px solid #d6d6d6;">
		<div id="top" >
			<table id="__01" width="1001" height="175"  cellpadding="0" style="border: 1px solid #d6d6d6; "
				cellspacing="0">
				<tr>
					<td><img src="/nems/img/image3_01.png" width="22" height="1"
						alt=""></td>
					<td colspan="12" rowspan="2"><img
						src="/nems/img/image3_02.png" width="978" height="16" alt=""></td>
					<td><img src="/nems/img/spacer.gif" width="1" height="1"
						alt=""></td>
				</tr>
				<tr>
					<td rowspan="4"><img src="/nems/img/image3_03.png" width="22"
						height="174" alt=""></td>
					<td><img src="/nems/img/spacer.gif" width="1" height="15"
						alt=""></td>
				</tr>
				<tr>
					<td rowspan="2" width="240" height="44"><a href="index.jsp"><img
							src="/nems/img/image3_04.png" width="240" height="44" alt=""
							border="0"></a></td>
					<td rowspan="2"><img src="/nems/img/image3_05.png" width="109"
						height="44" alt=""></td>
					<td colspan="10"><img src="/nems/img/image3_06.png"
						width="629" height="14" alt=""></td>
					<td><img src="/nems/img/spacer.gif" width="1" height="14"
						alt=""></td>
				</tr>
				<tr>
					<td><a href="index.jsp?content=intro/intro.jsp"
						onFocus="this.blur();" onMouseOut="MM_swapImgRestore()"
						onMouseOver="MM_swapImage('index_top_2','','/nems/img/image3_07_roll.png',1)"><img
							src="/nems/img/image3_07.png" width="110" height="30"
							id="index_top_2" alt="" border="0"></a></td>
					<td><img src="/nems/img/image3_08.png" width="39" height="30"
						alt=""></td>
					<td><a href="list.writing?bNumber=1"
						onFocus="this.blur();" onMouseOut="MM_swapImgRestore()"
						onMouseOver="MM_swapImage('index_top_3','','/nems/img/image3_09_roll.png',1)"><img
							src="/nems/img/image3_09.png" width="62" height="30"
							id="index_top_3" alt="" border="0"></a></td>
					<td><img src="/nems/img/image3_10.png" width="39" height="30"
						alt=""></td>
					<td><a href="#" onclick="checkMenu('index.jsp?contentMenu=/cust/myPage.jsp&content=/cust/mainPage.jsp')"
						onFocus="this.blur();" onMouseOut="MM_swapImgRestore()"
						onMouseOver="MM_swapImage('index_top_4','','/nems/img/image3_11_roll.png',1)"><img
							src="/nems/img/image3_11.png" width="75" height="30"
							id="index_top_4" alt="" border="0"></a></td>
					<td><img src="/nems/img/image3_12.png" width="36" height="30"
						alt=""></td>
					<td><a href="index.jsp?content=helpdesk/helpmain.jsp"
						onFocus="this.blur();" onMouseOut="MM_swapImgRestore()"
						onMouseOver="MM_swapImage('index_top_5','','/nems/img/image3_13_roll.png',1)"><img
							src="/nems/img/image3_13.png" width="62" height="30"
							id="index_top_5" alt="" border="0"></a></td>
					<td><img src="/nems/img/image3_14.png" width="43" height="30"
						alt=""></td>
					<td><a href="#" onclick="checkMenu('index.jsp?contentMenu=admin/menuPage.jsp&content=admin/mainPage.jsp')"
						onFocus="this.blur();" onMouseOut="MM_swapImgRestore()"
						onMouseOver="MM_swapImage('index_top_6','','/nems/img/image3_15_roll.png',1)"><img
							src="/nems/img/image3_15.png" width="73" height="30"
							id="index_top_6" alt="" border="0"></a></td>
					<td><img src="/nems/img/image3_16.png" width="90" height="30"
						alt=""></td>
					<td><img src="/nems/img/spacer.gif" width="1" height="30"
						alt=""></td>
				</tr>
				<tr>
					<td colspan="6"><img src="/nems/img/image3_17.png" width="599"
						height="115" alt=""></td>
					<td colspan="6"><img src="/nems/img/image3_18.png" width="379"
						height="115" alt=""></td>
					<td><img src="/nems/img/spacer.gif" width="1" height="115"
						alt=""></td>
				</tr>
			</table>

		</div>

		<div id="left">
			<br>
			<c:if test="${empty sessionScope.custId}">
				<div align="center">
					<jsp:include page="main/login.jsp" />
				</div>
			</c:if>
			<c:if test="${not empty sessionScope.custId}">

				<jsp:include page="main/courseList.jsp" />

			</c:if>

			<c:if test="${not empty param.contentMenu }">
				
					<jsp:include page="${param.contentMenu}" />
				
			</c:if>
			<c:if test="${empty param.contentMenu }">
				<br>
				<img src="/nems/img/left-second.jpg" width="220">

			</c:if>

		</div>
		
		<div id="defualt">
		
			<div >	
			<c:if test="${not empty param.content}">		
				<jsp:include page="${param.content}" />
				
			</c:if>


			<c:if test="${empty param.contentMenu }">
				<c:if test="${empty param.content}">
					<jsp:include page="main/maincenter.jsp" />
				</c:if>
			</c:if>
			</div>

		</div>

		<div id="bottom">
			<br /> <img src="/nems/img/main-bottom.gif" width="1000" height="56">
		</div>


	</div>

</center>

	<!-- End Save for Web Slices -->
</body>
</html>